import request from "../utils/request";

//条件查询
export const queryLogisticsCompany = (page,pageSize,companyName,linkUser) => {return request.get(`/logisticscompany?page=${page}&pageSize=${pageSize}&companyName=${companyName}&linkUser=${linkUser}`)};

//添加
export const addLogisticsCompanyApi = (data) => {return request.post(`/logisticscompany`,data)};

//回显数据
export const queryLogisticsCompanyById = (id) => {return request.get(`/logisticscompany/${id}`)};

//修改
export const updateLogisticsCompany = (data) => {return request.put(`/logisticscompany`,data)};

//删除
export const deleteLogisticsCompany = (id) => {return request.delete(`/logisticscompany/${id}`)};

//查询所有
export const queryLogisticsCompanyAll = () => {return request.get(`/logisticscompany/all`)};